#include "StdAfx.h"

#include "resource.h"

#include <fstream>
#include <cmath>
#include "waconsts.h"
#include "MAPCalculator.h"

#include "FFTWindow_cos2.h"
#include "lib/fftw++.h"

using namespace std;

struct MAP_threadInvoke{
	MAPCalculator* p;
	MAP_CalcParams params;
};

void MAP_Working_Thread( LPVOID pParam ){
	MAP_threadInvoke *ti=(MAP_threadInvoke* )pParam;
	 ti->p->DoCalc(ti->params);
}


MAPCalculator *MAPCalculator::instance = 0;
MAPCalculator::MAPCalculator(void)
{
	isOutputReady = false;
	source = 0;
}

MAPCalculator::~MAPCalculator(void)
{
}

int MAPCalculator::EID2Index(int eid) const
{
	int ret=-1;

	return ret;
}

bool MAPCalculator::StartCalc (const MAP_CalcParams p){
	return 0;

}

void MAPCalculator::DoCalc(const MAP_CalcParams p){


}

bool MAPCalculator::Export2File(LPCTSTR filename, int eid) const
{

	return true;
}